﻿/**
 * ...
 * @author George Mavchun
 */

package gui.hug.priv;

import gui.hug.HUGButton;
import gui.hug.HUGColors;

class HUGNumericStepperButton extends HUGButton
{
	private var displayState : HUGNumericStepperButtonDisplayState;
	private var overDisplayState : HUGNumericStepperButtonDisplayState;

	public function new(left : Bool) 
	{
		super("");

		displayState = new HUGNumericStepperButtonDisplayState(left, HUGColors.WHITE);
		overDisplayState = new HUGNumericStepperButtonDisplayState(left, HUGColors.VK_BORDER_INNER);
		
		setStates();
	}
	
	private function setStates() {
		downState = overDisplayState;
		overState = overDisplayState;
		upState = displayState;
		hitTestState = displayState;
	}

}